<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="table-scrollable">
	<table class="table table-striped table-hover table-success">
		<thead>
			<tr>
				<th>#</th>
				<th>名称</th>
				<th>性别</th>
				<th>生日</th>
				<th>电话</th>
				<th>单位</th>
				<th>工资</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.result }" var="user" varStatus="vs">
			<tr>
				<td>${vs.count + (page.pageNo - 1) * page.pageSize}</td>
				<td>${user.username}</td>
				<td>${user.gender.equals("1")?"男":"女"}</td>
				<td><fmt:formatDate value="${user.birthday }" pattern="yyyy-MM-dd"/></td>
				<td>${user.telephone}</td>
				<td>${user.station}</td>
				<td>${user.salary}</td>
				<td>
					<a href="javascript:;" class="btn btn-sm blue" onclick="update('/user/user?id=${user.id}')">
						<i class="fa fa-edit"></i>编辑
					</a>
					<a href="javascript:;" class="btn btn-sm red" onclick="del('/user/delete?id=${user.id}')">
						<i class="fa fa-trash"></i>删除
					</a>
				</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<div class="pageination-panel">${page}</div>